package com.library.common.enums;

import lombok.Getter;

/**
 * @ClassName: PrintStatus
 * @Description: 打印状态
 * @Author: hb
 * @Date: 2024/9/27
 */
@Getter
public enum PrintStatus {
    /**
     * 未打印
     */
    NO("0", "未打印"),

    /**
     * 成功打印
     */
    SUC("1", "成功打印"),

    /**
     * 待打印（申请打印）
     */
    WAIT("2", "申请打印");

    private final String code;
    private final String info;

    PrintStatus(String code, String info) {
        this.code = code;
        this.info = info;
    }

    public boolean equals(String source) {
        return this.getCode().equals(source);
    }
}
